#ifndef _result_table_h
#define _result_table_h

#include "wx/wx.h"
#include "wx/grid.h"
#include "wx/string.h"
#include "../BLL/pref.h"

class ResultGridTable : public wxGridTableBase  
{
public:
	void Bind(int row,int col,wxArrayString& result,NullArray nullArray);
	void SetValue(int row, int col, const wxString& value);
	ResultGridTable();
	~ResultGridTable();
    int GetNumberRows();// { return row; }
    int GetNumberCols() { return col; }
    bool IsEmptyCell( int row, int col ) { if (row >0 && col > 0) return false;  else return true; }
    wxString GetValue( int row, int col );// { return result[(row+1)*this->col+col]; }
//	wxString GetRowLabelValue(int row) { return wxEmptyString; }
	wxString GetColLabelValue(int col) { return result[col]; }


private:
	int row;
	int col;
	wxArrayString result;
	NullArray nullArray;
	int nullPos;
};

#endif
